package de.hdodenhof.circleimageview.sample.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;
import de.hdodenhof.circleimageview.sample.R;
import de.hdodenhof.circleimageview.sample.ui.fragment.button.CircularProgressButtonActivity;
import de.hdodenhof.circleimageview.sample.ui.fragment.button.MyAnimatorButtonActivity;
import de.hdodenhof.circleimageview.sample.ui.fragment.button.ShineButtonActivity;
import de.hdodenhof.circleimageview.sample.ui.fragment.button.SwitchButtonActivity;

public class ButtonFragment extends Fragment {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_button, null);
        view.findViewById(R.id.btn_switch).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), SwitchButtonActivity.class));
            }
        });
        view.findViewById(R.id.btn_shine).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), ShineButtonActivity.class));
            }
        });
        view.findViewById(R.id.btn_circular).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), CircularProgressButtonActivity.class));
            }
        });
        view.findViewById(R.id.btn_my_animatorr).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getActivity(), MyAnimatorButtonActivity.class));
            }
        });

        return view;
    }
}
